package com.mkyong.common;

import java.util.ArrayList;
import java.util.List;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

import com.mkyong.model.ChestionarTO;

@ManagedBean
@SessionScoped
public class ModelBean {
	
	public List<ChestionarTO> getChestionarList(){
		List chestionare = new ArrayList<ChestionarTO>();
		
		ChestionarTO c1 = new ChestionarTO();
		c1.setId(new Long(1));
		c1.setName("Chestionar Facebook");
		
		chestionare.add(c1);
		
		ChestionarTO c2 = new ChestionarTO();
		c2.setId(new Long(1));
		c2.setName("Chestionar Facebook");
		
		chestionare.add(c2);
		return chestionare;
	}
}
